Skip to content

Security: when no fix can be selected the list says why and what to do next - #410

Merged
nambok merged 1 commit into
mainfrom
fix/security-selection-says-why
Nov 13, 2026
Merged

nambok merged 1 commit into
mainfrom
fix/security-selection-says-why

Conversation

@nambok

@nambok nambok commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

On the Security page, a page of fixes that were all in a pull request (or all being worked on by a fix run) showed every checkbox off, the header's too, and the only reason was a tooltip on each row. An admin who had closed the fix pull request to start again could not tell why nothing could be selected or what to do.

This is the dashboard half. The platform half (CoderHelm/coderhelm-platform#661) releases the findings when their pull request closes or their run is cancelled, and sends the new fields this page reads. The page works with older servers: the new fields are optional.

Changes

  • When no row on the page can be selected, a strip at the top of the list says why and offers the next step:
  • The header checkbox stays off in that case and carries the same reason as its tooltip and accessible description. Below lg: the "Select all 0 on this page" row is replaced by the strip. With at least one selectable row the header works exactly as before.
  • Each open row that can't be selected says why in the row, without hovering ("Can't be selected: PR Infrastructure: a closed fix pull request says who closed it, and the fix is offered again #412 is already open."). A row with a fix run links to the run.
  • A pull request closed without merging shows "closed by on " and its row can be selected again. A finding's page shows the same sentence and offers Open fix PR again beside the closed pull request (it used to show only the link to the closed pull request).
  • lib/security.ts: whyNoneSelectable, closedWords, runsHref; the optional closed_at, closed_by, closed_by_person on a pull request and ticket on a group.
  • Docs: the security fixes page describes what the header says, and what closing a pull request, cancelling a run and Retry do.
  • The Infrastructure tab has no selection (one button per finding), so nothing changes there.

Verification

  • npm run lint, npm run typecheck, npm run check:openapi and npm run build pass in dashboard/.
  • e2e/security.spec.ts in full: 40 passed, 7 of them new: all in one pull request; all in a fix run; no fixed version, a single row, two pull requests, a mix and the Fixed list; one selectable row keeps the header and a closed pull request's fix is selectable; 390 wide with no sideways scroll; a member sees no selection reasons; a finding's page after a person closed its pull request.
  • Looked at the two new screenshots (1280 and 390 wide).
  • Not verified against a live server: the page was run against the spec's mocked API only.

…o next

On the Security page, a page of fixes that were all in a pull request, or
all being worked on by a fix run, showed every checkbox off, the header's
too, with the reason only in a tooltip.

- When no row on the page can be selected, a strip at the top of the list
  says why and offers the next step: "All 20 are in pull request #412"
  with a link to it, "A fix run is working on these" with a link to the
  run, no fixed version yet, or the count of each reason for a mix. The
  header checkbox carries the same reason for a pointer and a screen
  reader. With one selectable row the header works as before.
- A row that can't be selected says why in the row itself, without
  hovering, and a row with a fix run links to the run.
- A pull request closed without merging shows who closed it and when,
  and its fix can be selected again. A finding's page offers Open fix PR
  again beside the closed pull request.
- The docs page for security fixes describes the same.

Infrastructure findings have no selection (one button per finding), so
nothing changes there.
@nambok
nambok merged commit aa3a227 into main Nov 13, 2026
10 checks passed
@nambok
nambok deleted the fix/security-selection-says-why branch November 13, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant